#!/bin/bash
export HOMEDIR=$(dirname $(dirname $(readlink -f "${BASH_SOURCE[0]}")))
echo $HOMEDIR
echo -e "$HOMEDIR"
printf "%s" "$HOMEDIR"

source $HOMEDIR/scripts/init-env.sh

ptk install -f $HOMEDIR/config/install-config.yaml -p $HOMEDIR/$pkg_server -y
ptk cluster install-plugin -n $ptk_global_cluster_name -p $HOMEDIR/$pkg_whale

mkdir $ptk_global_base_dir/app/compat-tools
unzip -j $HOMEDIR/$pkg_compat_tools -d $ptk_global_base_dir/app/compat-tools
chown $ptk_global_user: $ptk_global_base_dir/app/compat-tools -R